package com.gk.carshopsys.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

import java.sql.Date;


public class Emp {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty(value = "员工号",index = 0)
    private String empno;
    @ExcelProperty(value = "姓名",index = 1)
    private String ename;
    @ExcelProperty(value = "性别",index = 2)
    private String sex;
    @ExcelProperty(value = "工作",index = 3)
    private String job;
    @ExcelProperty(value = "密码",index = 4)
    private String password;

    @ExcelProperty(value= "入职时间",index = 5)
    private String hiredate;
    @ExcelProperty(value = "部门名称",index = 6)
    private String dname;
    @ExcelProperty(value = "联系电话",index = 7)
    private String telphone;
    @ExcelProperty(value = "工资",index = 8)
    private Integer sal;
    @ExcelProperty(value = "状态",index = 9)
    private String state;


    public Emp() {
    }

    public Emp(String empno, String ename, String sex, String job, String hiredate, String dname, String telphone, Integer sal, String state, String password) {
        this.empno = empno;
        this.ename = ename;
        this.sex = sex;
        this.job = job;
        this.hiredate = hiredate;
        this.dname = dname;
        this.telphone = telphone;
        this.sal = sal;
        this.state = state;
        this.password = password;
    }

    public Emp(Integer id, String empno, String ename, String sex, String job, String hiredate, String dname, String telphone, Integer sal, String state,String password) {
        this.id = id;
        this.empno = empno;
        this.ename = ename;
        this.sex = sex;
        this.job = job;
        this.hiredate = hiredate;
        this.dname = dname;
        this.telphone = telphone;
        this.sal = sal;
        this.state = state;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmpno() {
        return empno;
    }

    public void setEmpno(String enpno) {
        this.empno = enpno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getHiredate() {
        return hiredate;
    }

    public void setHiredate(String hiredate) {
        this.hiredate = hiredate;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getSal() {
        return sal;
    }

    public void setSal(Integer sal) {
        this.sal = sal;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", empno='" + empno + '\'' +
                ", ename='" + ename + '\'' +
                ", sex='" + sex + '\'' +
                ", job='" + job + '\'' +
                ", password='" + password + '\'' +
                ", hiredate=" + hiredate +
                ", dname='" + dname + '\'' +
                ", telphone='" + telphone + '\'' +
                ", sal=" + sal +
                ", state='" + state + '\'' +
                '}';
    }
}
